from machine import Pin, ADC
import time


led1 = ADC(Pin(2))
led2 = ADC(Pin(3))
led1.atten(ADC.ATTN_11DB)  # 这里配置测量量程为3.3V
led2.atten(ADC.ATTN_11DB)
# ps2_x = ADC(Pin(3))
# ps2_x.atten(ADC.ATTN_11DB)  # 这里配置测量量程为3.3V
# 
# 
# btn = Pin(5, Pin.IN)

while True:
    led_1 = led1.read()  # 0-4095
    led_2 = led2.read()
#     val_x = ps2_x.read()  # 0-4095
#     print("x:{} y:{} btn:{}".format(val_x, val_y, btn.value()))
    print("led1:{} led2:{}".format(led_1,led_2))
    time.sleep(0.2)

